<template>
    <div class="shop">
        <!-- navbar -->
        <van-nav-bar title="购物车" />

        <!-- 商品  -->
        <van-swipe-cell>
            <van-card num="2" price="192" desc="木村耀司" title="登山旅行大学生户外双肩背包情侣外带小背包" class="goods-card"
                thumb="https://img01.yzcdn.cn/vant/cat.jpeg" />
            <template #right>
                <van-button square text="删除" type="danger" class="delete-button" />
            </template>
        </van-swipe-cell>
        <van-swipe-cell>
            <van-card num="1" price="192" desc="木村耀司" title="登山旅行大学生户外双肩背包情侣外带小背包" class="goods-card"
                thumb="https://img01.yzcdn.cn/vant/cat.jpeg" />
            <template #right>
                <van-button square text="删除" type="danger" class="delete-button" />
            </template>
        </van-swipe-cell>

        <!-- footer -->
        <van-tabbar v-model="active">
            <van-tabbar-item icon="home-o">首页</van-tabbar-item>
            <van-tabbar-item icon="search">活动</van-tabbar-item>
            <van-tabbar-item icon="friends-o">购物车</van-tabbar-item>
            <van-tabbar-item icon="setting-o">我的</van-tabbar-item>
        </van-tabbar>
    </div>
</template>
<script>
import Vue from 'vue';
import { NavBar, SwipeCell, Tabbar, TabbarItem, Button, Card } from 'vant';


Vue.use(SwipeCell);
Vue.use(Button);
Vue.use(NavBar);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Card);

export default {
    data () {
        return {
            active: 0
        }
    }
}
</script>
<style lang="scss" scoped>
.shop {
    .van-nav-bar {
        background: #69c3aa;
    }
    .goods-card {
        margin: 0;
        background-color: white;
    }

    .delete-button {
        height: 100%;
    }
}
</style>